package com.smedi.ismedi.constructionproject.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.joda.time.DateTime;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: xulinjun
 * @Date: 2021-6-18 15:22
 */
@Data
@TableName(value = "cnt_project_apply")
public class ProjectApplyEntity extends BasicFieldEntity implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "project_id")
    private Long projectId;

    @TableField(value = "apply_person_id")
    private Long applyPersonId;

    @TableField(value = "current_deal_person_id")
    private Long currentDealPersonId;

    @TableField(value = "apply_reason")
    private String applyReason;

    @TableField(value = "apply_code")
    private String applyCode;

    @TableField(value = "apply_status")
    private String applyStatus;

    @TableField(value = "apply_type")
    private String applyType;

    @TableField(value = "task_status")
    private String taskStatus;

    @TableField(value = "task_key")
    private String taskKey;

    @TableField(value = "apply_time")
    private LocalDateTime applyTime;

    @TableField(value = "lasted_deal_time")
    private LocalDateTime lastedDealTime;

    private LocalDateTime suspendedStartTime;

    private LocalDateTime suspendedEndTime;
}
